package com.flida.echart.basic.system.service.impl;

import com.flida.echart.basic.api.system.entity.Banner;
import com.flida.echart.basic.system.dao.BannerDao;
import com.flida.echart.basic.system.service.IBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("bannerService")
public class BannerServiceImpl implements IBannerService {

    @Autowired
    private BannerDao bannerDao;


    public int deleteByPrimaryKey(String id) {

        return bannerDao.deleteByPrimaryKey(id);
    }


    public int insert(Banner record) {

        return bannerDao.insert(record);
    }


    public int insertSelective(Banner record) {

        return bannerDao.insertSelective(record);
    }


    public Banner selectByPrimaryKey(String id) {

        return bannerDao.selectByPrimaryKey(id);
    }


    public int updateByPrimaryKeySelective(Banner record) {

        return bannerDao.updateByPrimaryKeySelective(record);
    }


    public int updateByPrimaryKey(Banner record) {

        return bannerDao.updateByPrimaryKey(record);
    }

}
